# coding=UTF-8
from django.shortcuts import get_object_or_404
from decorators import render_response
from djopping_core.models import Product
to_response = render_response('djopping/core/')

@to_response
def product_detail(request, product_slug):
    return 'product.html', { 'product': get_object_or_404(Product, slug=product_slug) }
